﻿@model DataEntity.OffGoodsClass

<div class="div_center">

    @using (Html.BeginForm("", "", FormMethod.Post, new { id = "goodsClassfm", name = "goodsClassfm" }))
    { 
        <fieldset class="datebox-button" style="height: auto; text-align: left; padding-top: 8px; padding-right: 8px; padding-bottom: 8px; padding-left: 8px;">
            <legend class="panel-title">物品类型</legend>


           <table class="TableBlock">
           
            <tr>
             
                <td  class="TableLabel" style="width:200px">
                    @Html.HiddenFor(model=>model.ID)
                    物品类型名称:
                </td>
                <td class="TableData" >
                    
                        @Html.TextBoxFor(model => model.Name)
                       
                </td>
               
               <td  class="TableLabel">
                   排序号:
                </td>
                <td class="TableData" >
                   
                         @Html.TextBoxFor(model => model.SortNumber, new { style="width:100px"})
                       
                </td>
            </tr>
          
            <tr>
                <td  class="TableLabel">
                    备注:
                </td>
                <td class="TableData" colspan="3">
                    
                        @Html.TextAreaFor(model => model.Remark, new { cols = "3", rows = "4", style = "height:70px;width: 93%; text-align: left;" })
                       
                </td>
            </tr>
        </table>

        </fieldset>
    }

</div>


<script>
    $(function () {

      
        $("#Name", $("#goodsClassfm")).validatebox({ required: true });
        $("#SortNumber", $("#goodsClassfm")).validatebox({ required: true, validType: ['integer'] });
    });
  

</script>
